package com.example.devsa_platform.controller;

import com.example.devsa_platform.common.Result;
import com.example.devsa_platform.pojo.vo.stats.VocationalStatsVo;
import com.example.devsa_platform.service.VocationalService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/s2")
public class VocationalController {

    @Resource
    private VocationalService vocationalService;

    @GetMapping("/vocationalStats")
    public Result<VocationalStatsVo> vocationalStats(){
        return vocationalService.vocationalStats();
    }
}
